<!DOCTYPE html>
<html ng-app="app">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

  	<link href="./build/common/base.css" rel="stylesheet">
  	<link href="./assets/css/login.css" rel="stylesheet">
  	
  	<script type="text/javascript" src="./build/common/base.js"></script>
	<script type="text/javascript" src="./build/common/ngEdit.js"></script>
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
        
        var app = angular.module('app', ['baseDirective']);
		 app.controller("ctrl", [ '$scope', 'baseService', function($scope, baseService) {
			 
		 /* $scope.user = {password:"1",account:"admin"}; */
		 	 $scope.login = function(){
		 		var post = baseService.postForm(__ctx+"/login/valid",$scope.user);
		 		 $.getResultData(post,function(){
		 			window.location = "index.html";
		 		})
		 	 }
		 	 
		 }]);

    </script>
    <style type="text/css">
        .weidaohang {
            width: 200px;
        }
        .col-sm-8 {
            text-align: center;
        }
        .m-t-md {
            color: black;
        }
        .m-t-md1 {
            font-weight: 900;
            color: #058c16;
        }
        .signin-form div {
            display: flex;
            flex-flow: column nowrap;
            align-items: center;
        }
        .btn-block {
            max-width: 360px;
        }
        .signup-footer {
            border: none;
            margin-top: 0;
            display: flex;
            justify-content: center;
        }
        .greenColor{
            background-color: #058c16;
        }
    </style>

</head>

<body class="signin" ng-controller="ctrl">
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-2"></div>
        <div class="col-sm-8">
            <form class="signin-form">
                <img class="weidaohang" src='./assets/img/weidaohang.png' alt="图片">
                <h2 class="m-t-md m-t-md1">客户管理系统</h2>
                <div>
                    <input type="text" class="form-control uname" ng-model="user.account"  placeholder="用户名" />
                    <input type="password" class="form-control pword m-b" ng-model="user.password" placeholder="密码" />
                </div>
                <span class="btn greenColor btn-block" ng-click="login()">提交</span>
            </form>
        </div>
        <div class="col-sm-2"></div>
    </div>
    <div class="signup-footer">
        <div class="pull-left">
            技术支持：微导航
        </div>
    </div>
</div>
</body>

</html>
